package com.letoo.sso.dataaccess.domain.dbo;

/**
 * 用户登陆失败日志。便于给登陆异常用户进行查看情况后进行特殊处理。
 * 
 * @author dengjie
 *
 */
public class LoginFailureLogDO extends BaseDO {

    /**
     * 
     */
    private static final long serialVersionUID = -1529275163782802587L;

    /**
     * 用户唯一ID。作为物理系统ID，主要是在数据迁移使用避免自增长后迁移困难
     */
    private long userId;

    /**
     * 账号登陆失败原因。
     */
    private String reason = "";

    /**
     * 登陆失败原因类型。1表示用户名密码错误。2表示禁用账号登陆。3、登陆输入信息包含攻击代码。以后可以增加原因类型。
     */
    private int type;
    /**
     * 登陆失败手机型号
     */
    private String phoneType = "";
    /**
     * 登陆失败设备型号
     */
    private int deviceType;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getPhoneType() {
        return phoneType;
    }

    public void setPhoneType(String phoneType) {
        this.phoneType = phoneType;
    }

    public int getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }

    @Override
    public String toString() {
        return "LoginFailureLogDO [userId=" + userId + ", reason=" + reason + ", type=" + type + ", phoneType=" + phoneType + ", deviceType=" + deviceType + "]";
    }

}
